//
//  LiuMineViewController.swift
//  LiuWeiBo
//
//  Created by 刘晓晨 on 2017/3/26.
//  Copyright © 2017年 刘晓晨. All rights reserved.
//

import UIKit

class LiuMineViewController: LiuBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin {
            navigationItem.rightBarButtonItem = UIBarButtonItem(titleStr: "push", andTarget: self, action: #selector(pushAction))
        } else {
            self.visitorView?.setLoginView(imageName: "visitordiscover_image_profile", messageStr: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        
    }

    func pushAction() {
        
        //创建push控制器
        let pushVc = LiuMineDetailViewController()
        navigationController?.pushViewController(pushVc, animated:true)
        
    }
}
